package com.gym.code.config.admin.client.model;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author xinchun.wang
 * @email: 532002108@qq.com
 * @createTime 2015-4-11 下午12:19:00
 */
public class DBDatabaseModel {
	private String dbName;
	private String ip;
	private int port;
	private String username;
	private String password;
	private List<DBTableModel> tableList;

	public String getDbName() {
		return dbName;
	}

	public void setDbName(String dbName) {
		this.dbName = dbName;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public List<DBTableModel> getTableList() {
		if (tableList == null) {
			tableList = new ArrayList<DBTableModel>();
		}
		return tableList;
	}

}
